﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 检测碰撞
/// </summary>
public class pinCircle : MonoBehaviour {
	/// <summary>
    /// 碰撞检测
    /// </summary>
    /// <param name="collision"></param>
	private void OnTriggerEnter2D(Collider2D collision)
	{
		if (collision.tag == "pinCircle")
		{
			GameObject.Find("GameManager").GetComponent<GameManager>().GameOver();
		}
	}
}
